'use strict';

/**
 * @ngdoc overview
 * @name anguarjsV2App
 * @description
 * # anguarjsV2App
 *
 * Main module of the application.
 */
// import router from './router.js';
var router = {
  main: {
    name: '',
    title: '',
    url: '/',
    templateUrl: 'views/main.html',
    controller: 'MainCtrl',
    controllerAs: 'main'
  },
  about: {
    name: 'about',
    title: 'about',
    url: '/about',
    templateUrl: 'views/about.html',
    controller: 'AboutCtrl',
    controllerAs: 'about'
  }
};

angular
  .module('anguarjsV2App', [
    'ngAnimate',
    'ngCookies',
    'ngResource',
    'ngSanitize',
    'ngTouch',
    'ui.router',
    'oc.lazyLoad'
  ])
  .config(function ($urlRouterProvider, $stateProvider, $locationProvider) {
    $locationProvider.hashPrefix('');
    $urlRouterProvider.otherwise('/');
    $stateProvider
      .state('/', router.main)
      .state('/about', router.about);
  });

